package GUI;

import java.awt.*;
import javax.swing.*;
/**
 * This class creates instance of FreezeRequest	
 * to display when needed
 * @author Aviat
 *
 */
public class FreezeRequest extends JPanel {
	private static final long serialVersionUID = 1L;
	private JComboBox reqNum;
	private JButton canButton;
	private JButton subButton;
	
	/**
	 * the constructor
	 */
	public FreezeRequest(){
		super();
		reqNum = new JComboBox();
		subButton = new JButton("submit");
		canButton = new JButton("cancel");
		initiate();
	}
	/**
	 * This method initializes FreezeRequest
	 */
	public void initiate(){
		JLabel lblLogInWindow = new JLabel("Request freeze window");
		lblLogInWindow.setForeground(Color.BLUE);
		lblLogInWindow.setFont(new Font("Arial Black", Font.BOLD, 17));
		lblLogInWindow.setBounds(99, 33, 247, 50);
		add(lblLogInWindow);
		
		JLabel lblUserName = new JLabel("Choose request number:");
		lblUserName.setFont(new Font("Arial", Font.BOLD, 13));
		lblUserName.setBounds(10, 96, 184, 50);
		add(lblUserName);
		
		reqNum.setBounds(204, 109, 142, 37);
		add(reqNum);
		
		subButton.setFont(new Font("Arial", Font.PLAIN, 12));
		subButton.setBounds(284, 218, 122, 40);
		add(subButton);
		
		canButton.setFont(new Font("Arial", Font.PLAIN, 12));
		canButton.setBounds(33, 218, 122, 40);
		add(canButton);
		
		setLayout(null);
		setSize(new Dimension(460, 300));	
	}
	
	/**
	 * 
	 * @return the submit button
	 */
	public JButton getSubButt(){
		return subButton;
	}
	/**
	 * 
	 * @return the cancel button
	 */
	public JButton getCanButt(){
		return canButton;
	}
	/**
	 * 
	 * @return JComboBox with the request numbers
	 */
	public JComboBox getReqNum(){
		return reqNum;
	}
}

	
